package com.itheima.tanhua.api;

import com.itheima.tanhua.dto.LocationDto;
import com.itheima.tanhua.mongo.UserLocation;

import java.util.List;

public interface UserLocationApi {

    //更新地理位置
    Boolean updateLocation(LocationDto dto);

    /**
     * 查询在指定范围内的人
     * distance 距离
     * userId 登陆用户id
     *
     * @param distance
     * @param userId
     * @return
     */
    List<Long> searchNear(Double distance, Long userId);
}